{% extends "base.html" %}

{% block title %}{{category}} Buyers Contact Information{% endblock %}
{% block keywords %}{{category}} Buyers Contact Information{% endblock %}
{% block description %}Free view contact details for {{category}} buyers including address, contact person, email, telephone and fax number.{% endblock %}

{% block body %}

  <div class="span-15 prepend-1 colborder">
    <h3 align="center">{{category}} Buyers Contact Information (Total:{{ pager.totalCount }})</h3>
    <table cellspacing=0 cellpadding=0 width=100% class="tables data" border=0>
      <tr>
        <td align="center">Company Name</td>
        <td align="center">Contact Person</td>
        <td align="center">Filter by 
        <form action="/" method="get" id="countryForm">
        <select name="country" style="width:200px" onchange="javascript:countryForm.submit()">
          <option value="All">Country/Region</option>
          {% include "country.html" %}
        </select>
        </form>
        </td>
      </tr>

      {% for buyer in buyers %}
        <tr>
          <td align="left"><a href="/showbuyer/{{buyer.key}}">{{ buyer.companyName }}</a></td>
          <td>{{buyer.contactName}}</td>
          <td><a href="/country/{{buyer.country|escape}}" title="Show more {{buyer.country}} buyers">{{buyer.country}}</a></td>
        </tr>
      {% endfor %}
    </table>

    
    {% if pager %}
      {% include "pager.html" %}
    {% endif %}
    
    {% ifnotequal country "All" %}
      <p><h1 align="center"><a href="/">&lt;&lt; Back to global buyer list</a></h1></p>
    {% endifnotequal %}

  </div>
  <div class="span-7 last">

    <h3>Browser Buyers by Category</h3>
    <div>
    {% for c in categories %}
      <a href="/category/{{c.name|escape}}">{{c.name}}<em>({{c.count}})</em></a><br/>
    {% endfor %}
    </div>
  </div>

{% endblock %}
